package cn.fx.pet.domain;


import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import cn.fx.basic.domain.BaseDomain;

import java.util.ArrayList;
import java.util.List;

/**
 * (PetType)实体类
 *
 * @author makejava
 * @since 2022-08-06 18:34:41
 */
@Data
public class PetType extends BaseDomain {

    private String name;
    private String description;
    private String dirPath;
    private Long pid;

    // 下级宠物类型
    //部门树最后一级没有数据就不显示
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    List<PetType> children = new ArrayList<>();

}
